<?php
if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Captcha extends CI_Controller {

    public function create() {
        $this->load->helper('captcha');
        $vals = array(
            'img_path' => './upload/captcha/',
            'img_url' => base_url() . 'upload/captcha/',
            'font_path' => './data/google_fonts/Shanti-Regular.ttf',
            'img_width' => '100',
            'img_height' => '25',
            'expiration' => '3600'
        );
        $data['cap'] = create_captcha($vals);
        $this->session->set_userdata('cap_wd', $data['cap']['word']);
        
        $this->load->view('captcha/create', $data);
    }
}